package com.itheima.spec.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.goods.pojo.Spec;
import entity.PageResult;

import java.util.List;

/**
 * @author wang
 * @description
 * @date 2021/7/29 17:33
 */
public interface SpecService extends IService<Spec> {
    List<Spec> findAll();

    boolean add(Spec spec);

    PageResult findPage4Post(Integer page, Integer size, Spec spec);

    PageResult findPage4Get(Integer page, Integer size);

    Spec findById(Integer id);

    boolean updateSpec(Integer id,Spec spec);

    boolean deleteById(Integer id);
}
